<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8"/>
    <link rel="icon" href="%PUBLIC_URL%/favicon.ico"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="theme-color" content="#000000"/>
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json"/>
    <title>React App</title>
    <srcipt src="/config.js"></srcipt>
</head>
<body>
<div id="root"></div>
<script>
    function setRem() {
        let designSize = 2260; // 设计图尺寸
        // let designSize = 1920; // 设计图尺寸

        let html = document.documentElement;

        let wW = html.clientWidth;// 窗口宽度
        let rem = wW * 100 / designSize;
        // console.log(rem);
        document.documentElement.style.fontSize = rem + 'px'
    }

    window.onload = function () {
        setRem()
    }
    window.onresize = function () {
        setRem()
    }
</script>
</body>
</html>
